import fetch from '@/utils/fetch'

const SkuApi = {
  getPageList (params) {
    return fetch({
      url: '/api/sku/page',
      method: 'get',
      params: params
    })
  },
  add (params) {
    return fetch({
      url: '/api/sku/add',
      method: 'post',
      data: params
    })
  },
  put (params) {
    return fetch({
      url: '/api/sku/put',
      method: 'post',
      data: params
    })
  },
  update (id, params) {
    return fetch({
      url: '/api/sku/' + id,
      method: 'put',
      data: params
    })
  },
  del (params) {
    return fetch({
      url: '/api/sku/' + params,
      method: 'delete'
    })
  }
}
export default SkuApi
